package cn.hd.commonService.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author hd
 * @since 2022-06-26
 */
@Getter
@Setter
@TableName("sys_function")
@ApiModel(value = "SysFunction对象", description = "")
public class SysFunction implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "recordId", type = IdType.AUTO)
    private Integer recordId;

    @ApiModelProperty(value = "功能名称",required = true)
    @TableField(value = "func_Name")
    private String funcName;

    @ApiModelProperty(value = "功能类型，1：功能目录，2：菜单，3：url，4：按钮",required = true)
    private String funcType;

    @ApiModelProperty(value = "组件所属目录")
    private Integer parentId =-1;

    @ApiModelProperty("功能类型为菜单时的组件地址，或资源路径")
    private String code;

    @ApiModelProperty("组件名称")
    private String component;

    @ApiModelProperty("是否启用，默认为1")
    private Integer enable = 1;

    @ApiModelProperty("图标")
    private String icon;

    @ApiModelProperty("删除标记")
    @TableLogic
    private Integer deleted;

    @TableField(value = "orderNo")
    private Integer orderNo;//排序号

    @TableField(value = "funcDesc")
    private String funcDesc;//功能描述


}
